package com.bonana.core.dao.user;

import com.bonana.core.entity.PartnerUser;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * Created by xiabin on 16/5/20.
 */
public interface PartnerUserDao {
    PartnerUser queryByPartnerNameAndPassword(@Param("username") String username, @Param("password") String password);

    int AddPartner(PartnerUser user);

    int DelPartner(@Param("partnerId") int partnerId);

    PartnerUser queryPartnerById(@Param("partnerId") int partnerId);

    List<PartnerUser> getPartners(@Param("queryString") String queryString);

    int UpdatePartner(PartnerUser user);

    int updateLastLogin(@Param("username") String username, @Param("lastLoginIp") int lastLoginIp, @Param("lastLoginTime") Timestamp lastLoginTime);

}
